package com.zwd.cases.demo.gof23.agent;

/**
 * @Description 代理类
 * @Author zhengwd
 * @Date 2023/4/19 22:41
 **/
public class Proxy implements GiveGift {

    SchoolGirl schoolGirl;

    public Proxy(SchoolGirl schoolGirl) {
        this.schoolGirl = schoolGirl;
    }

    @Override
    public void giveDolls() {
        System.out.println(this.schoolGirl.getName() + "送你洋娃娃");
    }

    @Override
    public void giveFlowers() {
        System.out.println(this.schoolGirl.getName() + "送你鲜花");
    }

    @Override
    public void giveChocolate() {
        System.out.println(this.schoolGirl.getName() + "送你巧克力");
    }
}
